package cn.alusiaor.springbootaop.service.impl;


import cn.alusiaor.springbootaop.entity.User;
import cn.alusiaor.springbootaop.exception.MyException;
import cn.alusiaor.springbootaop.exception.enums.impl.AppExceptionEnum;
import cn.alusiaor.springbootaop.service.ITestService;
import org.springframework.stereotype.Service;

import java.sql.SQLSyntaxErrorException;

/**
 * @author zhuzhiping
 * @date 2019/11/26
 * @description 功能描述
 */

@Service
public class TestServiceImpl implements ITestService {
    @Override
    public void add(User user) {
        if(user==null){
        }
    }

    @Override
    public void update(User user) {
        if(user!=null){
            throw new MyException(AppExceptionEnum.NOT_UPDATE);
        }
    }
}
